package lt.hsu.product.vo.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
@Schema(description = "更新产品请求")
public class UpdateProductReq {

    @Schema(description = "产品编码",requiredMode = Schema.RequiredMode.REQUIRED)
    @Pattern(regexp = "^[A-Z][A-Z0-9]{5}$",message = "产品编码必须以一个大写字母开头，后面跟4位大写字母或数字")
    private String productCode;

    @Schema(description = "产品名称",requiredMode = Schema.RequiredMode.REQUIRED)
    private String productName;

}
